home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 1020 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.5 KB

  1. Path: engnews1.Eng.Sun.COM!taumet!clamage
  2. From: clamage@Eng.sun.com (Steve Clamage)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: Must exception classes have copy const
  5. Date: 9 Apr 1996 20:01:52 GMT
  6. Organization: Sun Microsystems Inc.
  7. Approved: clamage@eng.sun.com (comp.std.c++)
  8. Message-ID: <4kef9s$ivf@engnews1.Eng.Sun.COM>
  9. References: <4kca45$347@dub-news-svc-5.compuserve.com>
  10. Reply-To: clamage@Eng.sun.com
  11. NNTP-Posting-Host: taumet.eng.sun.com
  12. X-Nntp-Posting-Host: taumet.eng.sun.com
  13. Content-Length: 1630
  14. X-Lines: 35
  15. Originator: clamage@taumet
  16.  
  17. In article 347@dub-news-svc-5.compuserve.com, Philippe Verdy <100105.3120@compuserve.com> writes:
  18. >
  19. >The reason why I am putting this submission is that I don't
  20. >know why this scheme does not allow resumable exceptions:
  21.  
  22. Whether exceptions should be resumable was the subject of intense debate
  23. over a period of two years early in the life of the C++ Committee. The
  24. debate was not about how to implement them. The debate was about whether
  25. the resumable model was appropriate for C++.
  26.  
  27. The short answer is that resumable exceptions impose a much higher
  28. cost on all implementations and programs, even those that don't
  29. want resumable exceptions, and that although sometimes you do want
  30. to resume an exception, such cases are in practice rare. People with
  31. extensive experience with resumable exceptions came to believe over
  32. time that they were a mistake, and that you get better program designs 
  33. if you don't use them. 
  34.  
  35. You can simulate resumable exceptions with non-resumable exceptions
  36. if you need to, so only convenience and not functionality is lost by
  37. the adopted language rule.
  38.  
  39. Debugging is a special case. In debug mode, you want to halt at the throw
  40. point, not the catch point after the stack has been unwound. A reasonable
  41. debugger will let you halt at the throw point.
  42.  
  43. Whether an uncaught exception is detected before or after stack unwinding
  44. is up to the implementation. The implementation can choose to provide
  45. a core dump or other diagnostic information as of the point of the
  46. uncaught throw, for example, and reasonable implementations will make
  47. that choice available.
  48. ---
  49. Steve Clamage, stephen.clamage@eng.sun.com
  50.  
  51.  
  52.  
  53.  
  54. [ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
  55. [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
  56. [ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
  57. [ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
  58. [ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
  59.